package edu.zut.hb.ambition.inhospitaltype.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.inhospitaltypeMapper;
import com.ruoyi.system.domain.inhospitaltype;
import com.ruoyi.system.service.IinhospitaltypeService;


@Service
public class inhospitaltypeServiceImpl implements IinhospitaltypeService 
{
    @Autowired
    private inhospitaltypeMapper inhospitaltypeMapper;


    @Override
    public inhospitaltype selectinhospitaltypeByInhospitalid(Long inhospitalid)
    {
        return inhospitaltypeMapper.selectinhospitaltypeByInhospitalid(inhospitalid);
    }

    @Override
    public List<inhospitaltype> selectinhospitaltypeList(inhospitaltype inhospitaltype)
    {
        return inhospitaltypeMapper.selectinhospitaltypeList(inhospitaltype);
    }

    @Override
    public int insertinhospitaltype(inhospitaltype inhospitaltype)
    {
        return inhospitaltypeMapper.insertinhospitaltype(inhospitaltype);
    }


    @Override
    public int updateinhospitaltype(inhospitaltype inhospitaltype)
    {
        return inhospitaltypeMapper.updateinhospitaltype(inhospitaltype);
    }

    @Override
    public int deleteinhospitaltypeByInhospitalids(Long[] inhospitalids)
    {
        return inhospitaltypeMapper.deleteinhospitaltypeByInhospitalids(inhospitalids);
    }

    @Override
    public int deleteinhospitaltypeByInhospitalid(Long inhospitalid)
    {
        return inhospitaltypeMapper.deleteinhospitaltypeByInhospitalid(inhospitalid);
    }
}
